package serverStuff;

import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.ObjectStreamException;
import java.io.Serializable;

public class ServerReply implements Serializable{
	private static final long serialVersionUID = -2965374882068708834L;
	public long elapsedTime;
	public String answer;
	
	public ServerReply(long timeBegin,String answer){
		elapsedTime=System.nanoTime()-timeBegin;
		this.answer=answer;
	}
	
	private void writeObject(ObjectOutputStream out)
		     throws IOException{
		out.defaultWriteObject();
		
	}
	private void readObject(ObjectInputStream in)
			throws IOException, ClassNotFoundException{
		in.defaultReadObject();
	}
	
	@SuppressWarnings("unused")
	private void readObjectNoData()
			throws ObjectStreamException{
		
	}
		 
}
